<template>
  <div>
    <div class="search-group">
      <div class="search-gropu-item">
        <label>挂架名称</label>
        <el-input v-model="listQuery.waiguamc" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>出厂号码</label>
        <el-input
          v-model="listQuery.chuchanghm"
          placeholder="请输入"
        ></el-input>
      </div>
      <div class="search-gropu-item">
        <label>型别</label>
        <el-input v-model="listQuery.xingbie" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>托盘号</label>
        <el-input v-model="listQuery.tuopanbh" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>货位号</label>
        <el-input v-model="listQuery.huoweibh" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>挂载号</label>
        <el-input v-model="listQuery.guazaih" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>归属号</label>
        <el-input v-model="listQuery.guishuh" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>操作状态</label>
        <el-select v-model="listQuery.caozuozt" placeholder="请选择">
          <el-option
            v-for="(item, index) in $util.getguajiaczzt()"
            :key="index"
            :label="item.name"
            :value="item.id"
          ></el-option>
        </el-select>
      </div>
      <div class="search-gropu-item">
        <label>挂架状态</label>
        <el-select v-model="listQuery.guajiazt" placeholder="请选择">
          <el-option
            v-for="(item, index) in $util.getguajiazt()"
            :key="index"
            :label="item.name"
            :value="item.id"
          ></el-option>
        </el-select>
      </div>
      <!-- <div class="search-gropu-item">
        <label>使用次数</label>
        <el-input v-model="listQuery.shiyongcs" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>剩余次数</label>
        <el-input v-model="listQuery.shengyucs" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>归属飞机号</label>
        <el-input v-model="listQuery.guishufjh" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>入库人</label>
        <el-input v-model="listQuery.rukur" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>经手人</label>
        <el-input v-model="listQuery.jingshour" placeholder="请输入"></el-input>
      </div>
      <div class="search-gropu-item">
        <label>出库人</label>
        <el-input v-model="listQuery.chukur" placeholder="请输入"></el-input>
      </div> -->
      <div class="search-button">
        <el-button type="primary" icon="el-icon-search" @click="search">
          查询
        </el-button>
        <el-button icon="el-icon-refresh" @click="resetlist">重置</el-button>
      </div>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'Test',
    props: {
      listQuery: {
        type: Object,
        default: function () {
          return {}
        },
        required: true,
      },
      path: {
        type: String,
        default: null,
        require: true,
      },
    },
    data() {
      return {
        show: true,
        kflist: [],
        Wzzylist: [],
        cbdjList: [],
        Zgdwlist: [],
      }
    },
    created() {},
    async mounted() {},
    methods: {
      search() {
        this.$parent.search()
      },
      resetlist() {
        this.$parent.resetlist()
      },
    },
  }
</script>
<style lang="scss" scoped>
  .search-group {
    display: flex;
    flex-flow: row wrap;

    .search-gropu-item {
      padding: 10px 20px;
      width: calc((100% - 20px * 8) / 6);
      display: flex;

      label {
        width: 0.8rem;
        white-space: nowrap;
        line-height: 0.32rem;
        margin-right: 0.1rem;
      }

      .el-select {
        width: 100%;
      }
    }

    .search-gropu-item-time {
      width: 500px !important;
      padding: 10px 20px;
      display: flex;

      label {
        white-space: nowrap;
        line-height: 32px;
        margin-right: 10px;
      }
    }

    .search-button {
      margin-left: auto;
      padding: 0.1rem 0.2rem;

      .el-button {
        font-size: 0.14rem !important;
      }
    }
  }
</style>
